package v1

import "github.com/gogf/gf/v2/frame/g"

type LinkReq struct {
	g.Meta `path:"/td/link/post" method:"post" tags:"TD链接" sm:"开启链接"`
	Linkid string `json:"lid" dc:"连接ID"`
}

type LinkAddReq struct {
	g.Meta `path:"/td/add/post" method:"post" tags:"TD链接" sm:"创建链接"`
	Link
}

type LinkGetReq struct {
	g.Meta `path:"/td/link/get" method:"post" tags:"TD链接" sm:"开启链接"`
}

type LinkDelReq struct {
	g.Meta `path:"/td/link/del" method:"post" tags:"TD链接" sm:"删除链接"`
	LinkId string `json:"lid" dc:"连接ID" v:"required"`
}

type Link struct {
	Name     string `json:"name" dc:"连接名称" v:"required"`
	Host     string `json:"host" dc:"地址"  v:"required"`
	Port     int    `json:"port" dc:"端口"  v:"required"`
	User     string `json:"user" dc:"用户名"  v:"required"`
	Password string `json:"password" dc:"密码"  v:"required"`
}
type LinkRes struct {
	Result interface{} `dc:"列表数据"`
}
